﻿@model Pulog.Models.Post
@{
    Layout = null;
}

<form id="formSubmitComment" method="post" action="/Posts/AddComment#bottom">
    <div id="submitCommentFieldset">
        <fieldset>
            <br />
            <h3>Add your Comment</h3>
                <input type="hidden" id="PostID" name="PostID" value="@Model.postID" />
                <input type="hidden" id="CommentParentID" name="CommentParentID" value="" />
            <p>
                @Html.TextBox("AuthorName", Request.Cookies["AuthorName"] == null ? "" : Request.Cookies["AuthorName"].Value)
                @Html.ValidationMessage("AuthorName", "Name is required")
                <label for="AuthorName">Name: (Required)</label>
            </p>
            <p>               
                @Html.TextBox("AuthorEmail", Request.Cookies["AuthorEmail"] == null ? "" : Request.Cookies["AuthorEmail"].Value)
                @Html.ValidationMessage("AuthorEmail", "Invalid Email Address")
                <label for="AuthorEmail">Email: (Required and will not be published)</label>
            </p>
            <p>
                @Html.TextBox("AuthorURL", Request.Cookies["AuthorURL"] == null ? "" : Request.Cookies["AuthorURL"].Value)
                @Html.ValidationMessage("AuthorURL", "*")
                <label for="AuthorURL">Website: (Optional and will be published)</label>
            </p>
            @*<p>
                <label for="AuthorURL">OpenID:</label>
                @Html.TextBox("OpenID") %>
            </p>*@
            <p>
                @Html.TextArea("CommentContent", new { rows = 3, cols = 60 })
                @Html.ValidationMessage("CommentContent", "Please say something :)")
                <label for="CommentContent">Content</label><br /><span>Supported UBB tags: [b],[u],[i],[color]</span><br />
            </p>
            <p>
                <input type="button" id="submitComment" name="submitComment" value="写好了，加上去" />
            </p>
        </fieldset>
    </div>
    <a name="bottom"></a> 

</form>